package woaini.fenger.core.bot.event.message.impl;

import java.io.Serializable;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import woaini.fenger.core.bot.id.ID;
import woaini.fenger.core.bot.event.Segment;

/**
 * <a
 * href="https://github.com/botuniverse/onebot-11/blob/master/message/segment.md#%E6%9F%90%E4%BA%BA">at某人</a>
 *
 * @see At
 * @author yefeng {@code @Date} 2023-05-16 16:50:39
 */
@Getter
@Setter
public class At extends Segment implements Serializable {

  private Data data;

  public At(ID qq) {
    super("at");
    this.data = new Data(qq);
  }

  @NoArgsConstructor
  @lombok.Data
  public static class Data implements Serializable {

    /**
     * @see ID all 标识at所有人
     */
    private ID qq;

    public Data(ID qq) {
      this.qq = qq;
    }
  }
}
